package com.wangjie.order.feign;

import com.wangjie.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-account")
public interface AccountFeignClient {
    /**
     * 扣减账户余额
     */
    @GetMapping("/debit")
    R debit(@RequestParam("userId") String userId, @RequestParam("money") int money);
}